Repository navigation
feat: prepare 0.1.0 local AI coding-session drift and repair loop - #6
Merged
Merged
Conversation
Release version guard✅ Version bump looks correct. 0.0.0 → 0.1.0
|
melampus-admin
marked this pull request as ready for review
September 28, 2026 07:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
AI coding agents can keep generating code after its behavior has diverged from the requested intent. This prepares the 0.1.0 alpha around a local generation → execution evidence → repair loop.
An owner reviews SDK
Contractobjects and a small executable scenario. The agent imports those contracts while implementing the required functions. A dedicatedmelampus sessionprocess detects source changes, executes each revision in a fresh interpreter, and evaluates every required check. Synchronous Claude Code hooks restrict progression and completion on drift/incomplete evidence, while allowing reads and scoped Edit/Write repairs. Fresh healthy evidence reopens the gate.For example, changing the sample pricing function to return its input produces nonnegative/cap findings; the next Bash action and Stop are blocked. Restoring the implementation permits completion. Removing instrumentation, substituting predicates, skipping targets, changing reviewed files, hanging, crashing, or losing the supervisor cannot count as success.
Included in this release
Validation
make ci: 98 tests pass, 95.3% coverage including subprocesses; schema generation, Ruff and strict mypy pass.make demo: healthy → drift → deny progression/completion → permit repair → healthy → stopped supervisor reports incomplete.58abe49: Linux Python 3.11–3.14, macOS Python 3.11/3.14, the stock collector integration, and version guard. CI run.Scope and release readiness
This is a cooperative local development guardrail for macOS/Linux. It checks reviewed executable claims on exercised inputs; it does not infer arbitrary intent, interrupt unfinished model tokens, guarantee absence of all AI slop, or sandbox generated code. Weak predicates remain weak. Enabled synchronous hooks and a controller that honors the gate are necessary.
The original <3% overhead target versus a bare OTel span remains unmet. ADR-0007 separates equivalent-work wrapper overhead from declaration telemetry cost; no unsupported performance or review-time savings are claimed.
No merge, release tag, or registry upload has been performed. The owner must reserve/confirm
melampusand configure the exact pending Trusted Publishers described indocs/RELEASE.md. Publishing remains a separate OIDC workflow.